﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UltimateAnalysis.aspx.cs" Inherits="Admin_UltimateAnalysis" Title="Admin ~ Ultimate Analysis" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<%@ Register src="../Usercontrols/Menu2.ascx" tagname="Menu2" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <table cellpadding="0" cellspacing="0" width="100%">
    
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     
                     <uc1:Header ID="Header1" runat="server" />
                     
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        
                        <uc2:Menu1 ID="Menu11" runat="server" />
                        
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left" >
                            <td>
                                    <table >
                                               <tr>
                                                    <td colspan="3" class="ashBkg">
                                                         <uc4:Menu2 ID="Menu1" runat="server" />
                                                    </td>
                                              </tr>
                                                
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading " align='left'>ULTIMATE ANALYSIS</td>
                                                                             <td align="left" ><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server"></asp:Label></td>
                                                                             <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>
                                                                         </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                               <tr  id="trUltimateTextboxes" runat="server">
                                    <td>
                                        <table style="width: 877px" >
                                             <tr class="altanateAshBkg" id="tr1" runat="server" visible="false" >
                                    <td class='label'>Id</td>
                                    <td><asp:TextBox ID="txtUltimateAnalId" runat="server" cssclass='textBox' 
                                            MaxLength="50"></asp:TextBox></td>
                                </tr> 
                                                               
                                <tr class="ashBkg">
                                       <td colspan="2">
                                        <table >
                                            <tr>
                                              <td class='label'>Moisture Status</td>
                                              <td>
                                                <asp:DropDownList ID="ddlMoistureStatus" runat="server" CssClass="dropdownlist">
                                                <asp:ListItem>as received</asp:ListItem>
                                                <asp:ListItem>dry</asp:ListItem>
                                                <asp:ListItem>dry ash-free</asp:ListItem>
                                                </asp:DropDownList>
                                              </td>
                                              <td class="label">Moisture (wt%) </td>
                                              <td><asp:TextBox ID="txtMoisture" runat="server" CssClass="textBox" Width="35px"></asp:TextBox></td>
                                            </tr>
                                        </table>
                                            
                                        </td>
                                </tr> 
                        
                                <tr>
                                    <td colspan="2">
                                        <table style="width: 868px">
                                           
                                            <tr class="altanateAshBkg">
                                                    <td class='label' style="width: 62px; height: 23px;">H&nbsp; (wt%) </td>
                                                    <td style="width: 63px; height: 23px;"><asp:TextBox ID="txtH" runat="server" cssclass='textBox' 
                                                            Width='35px' ></asp:TextBox></td>
                                                    <td class='label' style="width: 60px; height: 23px;">C&nbsp; (wt%)</td>
                                                    <td style="width: 59px; height: 23px;"><asp:TextBox ID="txtC" runat="server" cssclass='textBox' 
                                                            Width='35px' ></asp:TextBox></td>
                                                    
                                                    <td class='label' style="width: 57px; height: 23px;">Cl (wt%)</td>
                                                    <td style="width: 105px; height: 23px;"><asp:TextBox ID="txtCl" runat="server" cssclass='textBox' 
                                                            Width='35px' ></asp:TextBox></td>
                                                    <td class='label' style="width: 72px; height: 23px;">H:C </td>
                                                    <td style="height: 23px"><asp:TextBox ID="txtCH" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>
                                             </tr>
                                                    
                                            <tr class="ashBkg">
                                                    <td class='label' style="width: 62px">S (wt%)</td>
                                                    <td style="width: 63px"><asp:TextBox ID="txtS" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>
                                                    <td class='label' style="width: 60px">O (wt%)</td>
                                                    <td style="width: 59px"><asp:TextBox ID="txtO" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>
                                                    <td class='label' style="width: 57px">N&nbsp; (wt%)</td>
                                                    <td style="width: 105px"><asp:TextBox ID="txtN" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>
                                                    
                                                    <td class='label' style="width: 72px">O:C</td>
                                                    <td><asp:TextBox ID="txtCO" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>                                       
                                                    
                                                    <td class='label' style="width: 63px">Ash&nbsp;(wt%)</td>
                                                    <td style="width: 132px"><asp:TextBox ID="txtAsh" runat="server" cssclass='textBox' Width='35px'></asp:TextBox></td>
                                            </tr >
                                            
                                           
                                            
                                        </table>
                                    </td>
                                </tr> 
                                
                                <tr class="altanateAshBkg ">
                                    <td colspan="2">
                                        <table>
                                            <tr>
                                            <td>
                                             <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/btnSave.jpg" 
                                            onclick="btnSave_Click1" />
                                            </td>
                                            <td>
                                            <asp:Button ID="btnPrevious" Text="PreviousRecords" runat="server" 
                                                    CssClass="button" onclick="btnPrevious_Click" />
                                            </td>
                                            </tr>
                                        </table>
                                       
                                    
                                    </td>
                                </tr> 
                                        
                                        </table>
                                    </td>
                                </tr>                    
                             
                                               <tr class="ashBkg" id="trDgUltimateAnalysis" runat="server" >
                                    <td colspan="2">
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgUltimateAnalysis" 
                                            runat="server" onrowediting="dgUltimateAnalysis_RowEditing" >
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                            
                                                <asp:BoundField  DataField="id" HeaderText="Id"/>
                                                <asp:BoundField  DataField="moistureStatus" HeaderText="Moisture Status"/>
                                                <asp:BoundField  DataField="moisture" HeaderText="Moisture" />
                                                <asp:BoundField  DataField="ash" HeaderText="ASH" />
                                                <asp:BoundField  DataField="H" HeaderText="H" />
                                                <asp:BoundField  DataField="C" HeaderText="C"/>
                                                <asp:BoundField  DataField="N" HeaderText="N" />
                                                <asp:BoundField  DataField="O" HeaderText="O" />
                                                <asp:BoundField  DataField="Cl" HeaderText="Cl" />
                                                <asp:BoundField  DataField="S" HeaderText="S" />
                                                <asp:BoundField  DataField="H_C" HeaderText="H:C" /> 
                                                <asp:BoundField  DataField="O_C" HeaderText="O:C" />                                                                                             
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView> 
                                    </td>
                                </tr>    
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
        </td> 
    </tr>
    
 </table>
  
</asp:Content>

